package com.longteng.lesson.controller;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

import java.io.FileNotFoundException;

/**
 * Created by Administrator
 * DATE : 2018/5/20
 * TIME : 13:56
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@ControllerAdvice
public class ExceptionController {
    @ExceptionHandler({Exception.class})
    public String s(){
        return "errorpage/exceptionError";
    }
}
